﻿using SHomeWorkshop.LunarMind.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SHomeWorkshop.LunarMind.LMETools
{
    public class DemoResourceGroup
    {
        public void Add(DemoResourceInfo demoResourceInfo)
        {
            if (demoResourceInfo == null) return;

            if (this.resources == null) this.resources = new List<DemoResourceInfo>();

            this.resources.Add(demoResourceInfo);
        }

        public GraphicDemonstrator GraphicDemonstrator { get; set; }

        public string Title { get; set; }

        public int Count
        {
            get
            {
                if (resources == null) return 0;
                return resources.Count;
            }
        }

        private List<DemoResourceInfo> resources;

        public List<DemoResourceInfo> Resources { get { return this.resources; } }
    }
}
